package com.recource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.recource.constant.StaticConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author yujie
 * @createTime 2023/2/28 20:49
 * @description
 */
@Data
@TableName("t_design")
public class Design {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "title")
    private String title;

    @TableField(value = "detail")
    private String detail;

    //最后操作时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "end_date")
    private Date endDate;

    @TableField(value = "uid")
    private Integer uid;

    @TableField(value = "number")
    private Integer number;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Integer existedNumber;

}
